set packageName=check-resources
mklink /D "@types" "..\..\..\tools\@types"
mklink /D "node_modules" "..\..\..\tools\node_modules"
mkdir "src"
cd "src"
mklink /D "core" "..\..\..\..\tools\src\core"
mklink /D "impl" "..\..\..\..\tools\src\%packageName%"
copy "..\..\..\..\template\src\main.ts" "main.ts" /y
copy "..\..\..\..\template\src\shims-vue.d.ts" "shims-vue.d.ts" /y
copy "..\..\..\..\template\src\PackageDefine.ts" "PackageDefine.ts" /y
xcopy "..\..\..\..\template\src\panel" "panel" /e/y/i
cd ..
@REM tsc --init
copy "..\..\..\template\tsconfig.json" "tsconfig.json" /y
xcopy "..\..\..\template\i18n" "i18n" /e/y/i
rmdir "panel" /s/q
xcopy "..\..\..\template\panel" "panel" /e/y/i
del "main.js" /s/q
echo "Check package.json&i18n&panel and update it."
pause